<template>
	<view class="container">
		<view class="order" v-for="(item,index) in list" :key="index" @tap="goDetail">
			<view class="left">
				<text class="font26" style="color: #b5b9c9;">认购数量</text>
				<view class="number color_icon_txt m_t10 bold" style="font-size: 20upx;">
					<text class="font32">{{item.count}}</text>AD
				</view>
				<text class="font28" style="color: #696d8b;">交易金额  2583CNY+50AD</text>
			</view>
			<view class="right font26" style="color: #b5b9c9;">
				<text>{{item.date}}</text>
				<image src="../../static/equity_img/finished.png" mode="" class="m_t14"></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				list:[{
					"count": "1000",
					"date": "2019.06.16"
				},{
					"count": "1000",
					"date": "2019.06.15"
				},{
					"count": "1000",
					"date": "2019.06.14"
				},{
					"count": "1000",
					"date": "2019.06.13"
				},{
					"count": "1000",
					"date": "2019.06.12"
				},{
					"count": "1000",
					"date": "2019.06.11"
				},{
					"count": "1000",
					"date": "2019.06.10"
				},{
					"count": "1000",
					"date": "2019.06.09"
				},{
					"count": "1000",
					"date": "2019.06.08"
				}]
			}
		},
		methods: {
			goDetail () {
				uni.navigateTo({
					url: "./orderDetail"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		height: 100vh;
		background: #f4f4f8;
	}
	.container {
		height: 100%;
		overflow: auto;
		padding: 26upx 32upx;
		border-top: 1upx solid #EFEFF0;
		.order {
			width: 100%;
			background: #fff;
			border-radius: 12upx;
			border: 1upx solid #EFEFF0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 20upx 24upx;
			margin-bottom: 24upx;
			.left,.right {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
			}
			.left {
				width: 70%;
				align-items: flex-start;
			}
			.right {
				align-items: flex-end;
				image {
					width: 100upx;
					height: 80upx;
				}
			}
		}
	}
</style>
